package com.grgbanking.it.project.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * OperationWorkHandle entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "operation_work_handle", catalog = "it_system")
public class OperationWorkHandle implements java.io.Serializable {

	// Fields

	private Integer id;
	private OperationWork operationWork;
	private String username;
	private String trueName;
	private String upUsername;
	private String upTrueName;
	private String handleTime;
	private Integer duration;
	private String content;
	private String phone;
	private Integer state;

	// Constructors

	/** default constructor */
	public OperationWorkHandle() {
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "upId")
	public OperationWork getOperationWork() {
		return this.operationWork;
	}

	public void setOperationWork(OperationWork operationWork) {
		this.operationWork = operationWork;
	}

	@Column(name = "username", length = 45)
	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Column(name = "trueName", length = 45)
	public String getTrueName() {
		return this.trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;
	}

	@Column(name = "upUsername", length = 45)
	public String getUpUsername() {
		return this.upUsername;
	}

	public void setUpUsername(String upUsername) {
		this.upUsername = upUsername;
	}

	@Column(name = "upTrueName", length = 45)
	public String getUpTrueName() {
		return this.upTrueName;
	}

	public void setUpTrueName(String upTrueName) {
		this.upTrueName = upTrueName;
	}

	@Column(name = "handleTime", length = 45)
	public String getHandleTime() {
		return this.handleTime;
	}

	public void setHandleTime(String handleTime) {
		this.handleTime = handleTime;
	}

	@Column(name = "duration")
	public Integer getDuration() {
		return this.duration;
	}

	public void setDuration(Integer duration) {
		this.duration = duration;
	}

	@Column(name = "content", length = 65535)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	@Column(name = "phone", length = 45)
	public String getPhone() {
		return phone;
	}
	
	public void setPhone(String phone) {
		this.phone = phone;
	}

	@Column(name = "state")
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}
	

	

}